# #随机生成数列，输出其中奇数
# def Cardinal(a):
#     for i in a:
#         if i%2 != 0:
#             return i

# list = int(input("请输入一整数数列："))
# print(Cardinal(list))

import random
a=range(1,100,1)
b=random.sample(a,50)
print(b)

def carnum(a):
    c = []
    for i in a:
        if i %2 != 0:
            c.append(i)
    return c

print(carnum(b))
